package com.openbravo.pos.inventory;

import com.openbravo.data.loader.Datas;
import com.openbravo.data.model.Column;
import com.openbravo.data.model.Field;
import com.openbravo.data.model.PrimaryKey;
import com.openbravo.data.model.Row;
import com.openbravo.data.model.Table;
import com.openbravo.data.user.EditorRecord;
import com.openbravo.format.Formats;
import com.openbravo.pos.forms.AppLocal;
import com.openbravo.pos.forms.AppView;
import com.openbravo.pos.panels.JPanelTable2;

public class AttributeSetsPanel extends JPanelTable2
{
  private EditorRecord editor;

  protected void init()
  {
    this.row = new Row(new Field[] { new Field("ID", Datas.STRING, Formats.STRING), new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true) });
    Table localTable = new Table("ATTRIBUTESET", new Column[] { new PrimaryKey("ID"), new Column("NAME") });
    this.lpr = this.row.getListProvider(this.app.getSession(), localTable);
    this.spr = this.row.getSaveProvider(this.app.getSession(), localTable);
    this.editor = new AttributeSetsEditor(this.dirty);
  }

  public EditorRecord getEditor()
  {
    return this.editor;
  }

  public String getTitle()
  {
    return AppLocal.getIntString("Menu.AttributeSets");
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.inventory.AttributeSetsPanel
 * JD-Core Version:    0.6.0
 */